

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Yozeev.SystemConfig;

namespace Yozeev.EntityMapper.PayMethods
{
    public class PayMethodCfg : IEntityTypeConfiguration<PayMethod>
    {
        public void Configure(EntityTypeBuilder<PayMethod> builder)
        {

            builder.ToTable("PayMethods", YoYoAbpefCoreConsts.SchemaNames.Basic);

            
			builder.Property(a => a.PayName).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.PayCode).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.Sort).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.IsEnabled).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);


        }
    }
}


